<!--
 * @Description: Description
 * @Author: Yongchao Wang
 * @Date: 2020-09-10 08:37:58
 * @LastEditors: Yongchao Wang
 * @LastEditTime: 2020-09-25 15:07:08
-->
<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" />
    <HelloWorld msg="Welcome to Your Vue.js App" @sendMsg="sendMsg" />
    <router-view></router-view>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from "@/components/HelloWorld-suspense.vue";

export default {
  name: "Home",
  components: {
    HelloWorld,
  },
  setup() {
    const sendMsg = (value) => {
      console.log(value);
    };
    return { sendMsg };
  },
};
</script>
